    <div id="content" class="span10">
      <!-- content starts -->


      <div>
        <ul class="breadcrumb">
          <li>
            <a href="<?php echo base_url('panel'); ?>">Inicio</a> <span class="divider">/</span>
          </li>
          <li>
            <a href="<?php echo base_url('panel/infografia'); ?>">Infografía</a> <span class="divider">/</span>
          </li>
          <li>Agregar</li>
        </ul>
      </div>

      <div class="row-fluid">
        <div class="box span12">
          <div class="box-header well" data-original-title>
            <h2><i class="icon-picture"></i> Agregar Infografía</h2>
            <div class="box-icon">
              <a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
              <a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
            </div>
          </div>
          <div class="box-content">

            <!-- START FORM UPLOAD IMAGENES -->
            <form action="<?php echo base_url('panel/infografia/upload'); ?>" method="post" enctype="multipart/form-data" class="form-horizontal" id="formImgs">
              <fieldset>
                <legend></legend>

                <div class="control-group">
                  <label class="control-label" for="farticulo">Artículo</label>
                  <div class="controls">
                    <input type="text" name="farticulo" id="farticulo" class="span6 typeahead" value="<?php echo isset($_POST['fnombre_a'])?$_POST['fnombre_a']:''; ?>">
                    <span class="help-block">Empieze a tipear para mostrar los artículos. Seleccione uno.</span>
                  </div>
                </div>

                <div class="control-group">
                  <label class="control-label" for="name">*Imagenes</label>
                  <div class="controls">
                    <input type="file" name="fimagenes[]" id="fimagenes" class="input-file uniform_on" multiple>
                    <span class="help-block">Seleleccione una o varias imagenes.</span>
                  </div>
                </div>

              </fieldset>
            </form><!-- END FORM UPLOAD IMAGENES -->

             <!-- START FORM DATOS -->
            <form action="<?php echo base_url('panel/infografia/agregar'); ?>" method="post" enctype="multipart/form-data" class="" id="form">
              <fieldset>
                <legend></legend>

                <input type="hidden" name="fid" id="fid" value="<?php echo set_value('fid'); ?>">
                <input type="hidden" name="fnombre_a" id="fnombre_a" value="<?php echo set_value('fnombre_a'); ?>">

                <div class="row-fluid">
                  <ul class="thumbnails" id="thumbs">
                    <?php if (isset($_POST['ftitulo'])) {
                            foreach ($_POST['ftitulo'] as $key => $thumb) {
                      ?>
                                <li class="span3" id="thumb">
                                  <div class="thumbnail" style="z-index: 0;">
                                    <img src="<?php echo base_url($_POST['fthumb'][$key]); ?>" alt="" width="260" height="180" style="width: 260px; height: 180px; z-index: 0;">
                                    <label>Titulo</label><input type="text" name="ftitulo[]" value="<?php echo $thumb ?>">
                                    <label>Tags</label><input type="text" name="ftags[]" value="<?php echo $_POST['ftags'][$key] ?>">
                                    <input type="hidden" name="fpath[]" id="fpath" value="<?php echo $_POST['fpath'][$key]?>">
                                    <input type="hidden" name="fthumb[]" id="fthumb" value="<?php echo $_POST['fthumb'][$key]?>">
                                    <p id="button"><button type="button" class="btn btn-mini btn-danger" id="deleteThumb" onClick="upload_multiple.deleteThumb(this)"><i class="icon-trash"></i></button></p>
                                  </div>
                                </li>
                    <?php }} ?>
                  </ul>
                </div>

                <div class="form-actions">
                  <button type="submit" class="btn btn-primary">Guardar</button>
                  <button class="btn" type="reset">Cancelar</button>
                </div>
              </fieldset>
            </form> <!-- END FORM DATOS -->

          </div>
        </div><!--/span-->

      </div><!--/row-->




          <!-- content ends -->
    </div><!--/#content.span10-->

<!-- Bloque de alertas -->
<?php if(isset($frm_errors)){
  if($frm_errors['msg'] != ''){
?>
<script type="text/javascript" charset="UTF-8">
  $(document).ready(function(){
    noty({"text":"<?php echo $frm_errors['msg']; ?>", "layout":"topRight", "type":"<?php echo $frm_errors['ico']; ?>"});
  });
</script>
<?php }
}?>
<!-- Bloque de alertas -->
